package com.jts.cloudspokes.entities;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class BotTaskEntity {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;
	
	@Persistent
	private String userId;
	
	@Persistent
	private Date createdDate;
	
	@Persistent
	private String taskMessage;
	
	@Persistent
	private long countDownMs;
	
	@Persistent
	private boolean isActive;
	
	@SuppressWarnings("unused")
	private BotTaskEntity() {}
	
	public BotTaskEntity(String userId, Date createdDate, long countDownMs, String taskMessage, boolean isActive) {
		this.userId = userId;
		this.createdDate = createdDate;
		this.countDownMs = countDownMs;
		this.taskMessage = taskMessage;
		this.isActive = isActive;
	}
	
	public Long getKey() {
		return this.key;
	}
	
	public void setKey(Long key) {
		this.key = key;
	}
	
	public String getUserId() {
		return this.userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public Date getTaskDate() {
		return this.createdDate;
	}
	
	public void setTaskDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	
	public long getCountDownMs() {
		return this.countDownMs;
	}
	
	public void setCountDownMs(long countDownMs) {
		this.countDownMs = countDownMs;
	}
	
	public String getTaskMessage() {
		return this.taskMessage;
	}
	
	public void setTaskMessage(String taskMessage) {
		this.taskMessage = taskMessage;
	}
	
	public boolean getIsActive() {
		return this.isActive;
	}
	
	public void setIsActive(boolean isActive) {
		this.isActive = isActive;
	}
}